import { createWebHashHistory, createRouter } from 'vue-router';
import Layout from '../components/Layout.vue';

const routes = [
  {
    path: '/',
    component: Layout,
    children: [
      {
        path: '',
        name: 'Home',
        component: () => import('../components/HelloWorld.vue'),
      },
    ],
  },
  {
    path: '/test',
    component: Layout,
    children: [
      {
        path: 'test1',
        component: () => import('../views/test/Test1.vue'),
      },
    ],
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
